require(["../main"], function(main) {
  require(["jquery", "Swiper", "getUrl"], function($, Swiper, getUrl) {
    var mySwiper = new Swiper(".swiper-container", {
      direction: "horizontal",
      loop: true,
      autoplay: true,
      pagination: {
        el: ".swiper-pagination",
        clickable: true
      }
    });

    $(".img-hover").hover(
      function() {
        $(".met-weixins").css("display", "block");
      },
      function() {
        $(".met-weixins").css("display", "none");
      }
    );
   

    $(".fenzhanname").hover(
      function() {
        $(".fenzhanname h1 span").attr("class","iconfont icon-shangjiantou")
        $(".fenzhan-item").fadeIn(300);
      },
      function() {
        $(".fenzhanname h1 span").attr("class","iconfont icon-xiajiantou")
        $(".fenzhan-item").fadeOut(300);
      }
    );

    $(".back-img").click(function() {
      alert("加入收藏失败，请使用Ctrl+D进行添加");
    });
  });
});
